package binary

/**
 *@author haypo
 *@since 2021/7/20
 */
const val FtTag = 0x60
const val FuncRef = 0x70
const val MutConst = 0
const val MutVar = 1


const val MagicNumber = 0x6D736100U // `\0asm`
const val Version = 0x00000001U; // 1

const val ImportTagFunc = 0;
const val ImportTagTable = 1;
const val ImportTagMem = 2;
const val ImportTagGlobal = 3;

const val ExportTagFunc = 0;
const val ExportTagTable = 1;
const val ExportTagMem = 2;
const val ExportTagGlobal = 3;


const val SecCustomID: Byte = 0
const val SecTypeID: Byte = 1;
const val SecImportID: Byte = 2;
const val SecFuncID : Byte= 3;
const val SecTableID : Byte= 4;
const val SecMemID : Byte= 5;
const val SecGlobalID : Byte= 6;
const val SecExportID: Byte = 7;
const val SecStartID : Byte= 8;
const val SecElemID : Byte= 9;
const val SecCodeID : Byte= 10;
const val SecDataID : Byte= 11;